<template>
  <span>
    {{ message }}
  </span>
</template>
<script>
export default {
  name: "ValidateStatus",
  props: {
    value: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {};
  },
  computed: {
    message() {
      let text = "";
      this.value?.forEach((ele, index) => {
        text += `${ele.message}${index === this.value.length - 1 ? "" : "，"}`;
      });
      return text;
    }
  }
};
</script>
